import flet
def mainView(page):
    card= flet.Card(
            content=flet.Container(
                content=flet.Column(
                    [
                        flet.ListTile(
                            leading=flet.Icon(flet.icons.ALBUM),
                            title=flet.Text("The Enchanted Nightingale"),
                            subtitle=flet.Text(
                                "Music by Julie Gable. Lyrics by Sidney Stein."
                            ),
                        ),
                        flet.Row(
                            [flet.TextButton("Buy tickets"), flet.TextButton("Listen")],
                            alignment=flet.MainAxisAlignment.END,
                        ),
                    ]
                ),
                width=400,
                padding=10,
            )
        )
    return flet.View(
                "",
                [flet.AppBar(title=flet.Text("card")),card]
            )
if __name__=="__main":
    flet.app(target=main)